package com.googlecode.rjm.model.journal;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

import com.googlecode.rjm.model.Version;

@Entity
@DiscriminatorValue(value = "attr#fixed_version_id")
public class VersionJournalDetail extends JournalDetail<Version> {
	
	private static final long serialVersionUID = 1L;

	@Override
	public Version getTypedValue() {
		return loadObjectFromId(this.getValue(), Version.class);
	}

	@Override
	public Version getOldTypedValue() {
		return loadObjectFromId(this.getOldValue(), Version.class);
	}

}
